package p.ithorns.example.statemachine.test;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import p.ithorns.example.statemachine.core.Event;
import p.ithorns.example.statemachine.core.State;

/**
 * AssignAction
 *
 * @author ithorns
 * @version 1.0.0
 * @date 2022/11/13 12:10
 */
@Slf4j
@Getter
@Setter
public class AssignAction extends FlowAction {

    public AssignAction(State curState, State nextState) {
        super(FlowEventType.ASSIGN, curState, nextState);
    }

    @Override
    public boolean doExecute(Event event) {
        return true;
    }
}